[ <--- prev -- ]  [ HOME ]  [ -- next ---> ]

[ full index ]


PLOTGEOM

Calls the PLOTGEOM plotting geometry package [Jaa73], to scan slices of the problem geometry and to produce auxiliary files for plotting for information about PLOTGEOM)

See also GEOBEGIN, GEOEND

     WHAT(1) = 0.0 : axes are plotted
             = anything else: no axes

     WHAT(2) = 0.0 : all region boundaries are plotted,
             = anything else: only boundaries between different materials
               are plotted

     WHAT(3) = 0.0 : no numbering of regions or boundaries
             = anything else: boundaries and regions are numbered (not yet
               implemented)

     WHAT(4) > 0.0 : maximum length of each worm
             < 0.0 : worm compression is performed
               Default: 2000.

     WHAT(5) = 0.0 : no diagnostic printing
             = anything else: write scan history to logical output unit
               WHAT(6) (filename will be PLOTGEOM.OUT)

     WHAT(6) = number of the logical unit for PLOTGEOM input. If different
               from 0.0, PLOTGEOM input must be provided in a file
               PLG.GFXINDAT. PLOTGEOM input, which is not in standard
               FLUKA format, is described in Note 14).
               Default: PLOTGEOM input immediately follows

     SDUM    = FORMAT: the PLOTGEOM store file will be a formatted one
             = anything else: unformatted store file

     Default (option PLOTGEOM not given): no plotting

Notes:

            a) this maximises the storage available for PLOTGEOM for a given
               storage dimension, and hence minimises the chances of
               having a too small storage
            b) since PLOTGEOM frees again all the used storage after
               completion, the total memory required is minimised

            First  line (format A80)   : scan title
            Second line (format 6E10.5): X0 , Y0 , Z0 , X1 , Y1 , Z1
            Third  line (format 6E10.5): TYX, TYY, TYZ, TXX, TXY, TXZ
            Fourth line (format 4E10.5): EXPANY, EXPANX, PFIMXX, PFIMXY

The meaning of the variables is:

            X0,Y0,Z0 are the real coordinates of the bottom left-hand corner
                     of the picture
            X1,Y1,Z1 are the real coordinates of the top right-hand corner of
                     the picture
            TYX,TYY,TYZ are the direction cosines of the y-axis of the plot
            TXX,TXY,TXZ are the direction cosines of the x-axis of the plot

            EXPANY   is an expansion factor for the Y-axis
            EXPANX   is an expansion factor for the X-axis
            PFIMXX, PFIMXY: if > 0, number of intervals along the X- and Y-axis
                     for plotting strength and direction of a magnetic field
                     returned by the user routine MAGFLD

There is some redundancy in the position and direction input: indeed once X0,Y0,Z0,X1,Y1,Z1 are given, only one of the axis is actually required, therefore the user can leave = 0.0 the three cosine of one of the two axes.

EXPANX, EXPANY must be >= 0.1 (only their relative value matters): smaller values are reset to the default value = 1

            PLOTGEOM.STORE

The formatted version is self explanatory, while the unformatted one is organised as follows:

            1st record: one CHARACTER*80 variable (scan title)
            2nd record: 14 REAL*4 variables:
              X0,Y0,Z0,X1,Y1,Z1,TYX,TYY,TYZ,TXX,TXY,TXZ,XAXLEN,YAXLEN
              (XAXLEN and YAXLEN are the x and y axis length)

Then, repeated m (m>=2, typically it is 2) times:

              m1 record: two I*4 variables, representing the number of worms
                         NWORMS, and a dummy variable

Then, repeated I = 1, NWORMS times:

                 mi1 record: three I*4 variables; the first one is the worm
                             index (= I), the second is dummy, the third
                             is the worm length LENGTH, namely the number of
                             points in the worm.
                 mi2 record: (X(J),Y(J),J=1,LENGTH), where X and Y are the
                             abscissae and ordinates of a vector of LENGTH
                             points to be joined with a line (= a worm), in
                             the plane where the origin (0,0) corresponds to
                             X0,Y0,Z0 and the x and y axis to TXX,TXY,TXZ
                             and TYX,TYY,TYZ

In a compressed file there is just an extra record at the very beginning of the file: it contains a CHARACTER*80 string equal to ' ***COMPRESSED***COMPRESSED*** '

Example:

 * Plot a vertical section of a geometry where x-axis points up, y-axis points
 * to the right, and z-axis into the page. The PLOTGEOM file will be formatted.
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 PLOTGEOM         1.0       1.0       0.0       0.0       0.0       5. FORMAT
           Vertical section of the tunnel geometry at z = 35 m
     -120.0    -180.0    3500.0     120.0     180.0    3500.0
        1.0       0.0       0.0       0.0       1.0       0.0
        1.0       1.0       0.0